import { createApp } from 'vue'
import App from './App.vue'
import { library } from '@fortawesome/fontawesome-svg-core'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import { fas } from '@fortawesome/free-solid-svg-icons';
// 注册全局组件
import Icon from "./components/Icon/index.vue";
import Button from "./components/Button/index.vue";
import Card from './components/Card/index.vue';
import Dialog from './components/Dialog/index.vue';
import Pager from "./components/Pager/index.vue";
import Collapse from "./components/Collapse/index.vue";
import CollapseItem from './components/Collapse/CollapseItem.vue';
import ToolTip from "./components/ToolTip/index.vue";
import Dropdown from './components/DropDown/index.vue';
import Input from './components/Input/index.vue';

export const app = createApp(App)
library.add(fas)
app.component('font-awesome-icon', FontAwesomeIcon)
app.component(`LeeIcon`, Icon)
app.component(`LeeButton`, Button)
app.component(`LeeCard`, Card)
app.component(`LeeDialog`, Dialog)
app.component('LeePager', Pager)
app.component('LeeCollapse', Collapse)
app.component('LeeCollapseItem', CollapseItem)
app.component('LeeToolTip', ToolTip)
app.component('LeeDropDown', Dropdown)
app.component('LeeInput', Input)
